#define _CRT_SECURE_NO_WARNINGS 1
//#include <stdio.h>
//
//#define MAX(a, b) ((a) > (b) ? (a) : (b))
//
//int main()
//{
//    int a = 6;
//    int b = 7;
//    printf("MAX =  %d\n", MAX(a, b));
//    return 0;
//}
#include <stdio.h>

#define GET(BUFFER) do{                             \
        printf("input : ");                         \
        fgets(BUFFER, sizeof(BUFFER), stdin);       \
        if(BUFFER[strlen(BUFFER)-1] == '\n')        \
            BUFFER[strlen(BUFFER)-1] == '\0';       \
        }while(0);

int main()
{
    char buffer[10] = {0};
    GET(buffer);
    printf("BUFFER : %s", buffer);
    return 0;
}


